﻿using Shop.Model.Advert;
using Shop.Model.DB;
using Shop.RemoteModel.Advert.Model;
using WeDonekRpc.Model;

namespace Shop.Repository
{
    public interface IAdvertRepository : IShopBaseRepository<DBAdvert, long>
    {
        Result[] Query<Result> (AdvertQueryParam query, IBasicPage paging, out int count) where Result : class;
        long Add (AdvertAddArg add);
        void Enable (DBAdvert advert);
        void Stop (DBAdvert advert);
        void End (DBAdvert advert);
    }
}